package algorithms.hint;

import configuration.Configuration;

/**
 * The block location hint contains only probable location of the master copy
 * 
 * @author Nodirjon Siddikov
 */
public class Hint {
	// instance variables
	private int _diskBlockID; // ID of the disk block
	private int _size; // size of the hint
	private int _clientID; // the probable client ID that hosts the disk block
	// constructor

	public Hint(int diskBlockID, int clientID) {
		_diskBlockID = diskBlockID;
		_size = Configuration.hintSize;
		_clientID = clientID;
	}

	// get disk block ID
	public int getDiskBlockID() {
		return _diskBlockID;
	}

	// get the size of the hint
	public int getSize() {
		return _size; // in KB
	}

	// get the ID of the client that hosts the disk block
	public int getClientID() {
		return _clientID;
	}
}